/**
 * Defines the main routes in the application.
 * The routes you see here will be anchors '#/' unless specifically configured otherwise.
 */

define(['./app'], function (app) {
    'use strict';
    return app.config(function ($stateProvider,$urlRouterProvider) {

        $urlRouterProvider.otherwise('/error');

        $stateProvider
        //系统导航设置
        .state("sitenav",{
            url:'/sitenav',
            templateUrl:"app/sitenav/sitenav.html",
            params:{
                'operate':'save'
            }
        })
        //系统导航查询
        .state("sitenavment",{
            url:'/sitenavment',
            templateUrl:"app/sitenav/sitenavment.html",
            params:{
                'operate':'find'
            }
        })


        //faq分类添加
        .state("faqarticlescategory",{
            url:'/faqarticlescategory',
            templateUrl:"app/helpcenter/faqarticlescategory.html",
            params:{
                'operate':'save'
            }
        })
        //faq分类列表
        .state("faqarticlescategoryment",{
            url:'/faqarticlescategoryment',
            templateUrl:"app/helpcenter/faqarticlescategoryment.html",
            params:{
                'operate':'find'
            }
        })
        //faq添加
        .state("faqarticles",{
            url:'/faqarticles',
            templateUrl:"app/helpcenter/faqarticles.html",
            params:{
                'operate':'save'
            }
        })
        //faq列表
        .state("faqarticlesment",{
            url:'/faqarticlesment',
            templateUrl:"app/helpcenter/faqarticlesment.html",
            params:{
                'operate':'find'
            }
        })

        //话题列表
        .state("topicment",{
            url:'/topicment',
            templateUrl:"app/topic/topicment.html",
            params:{
                'operate':'find'
            }
        })
        //话题
        .state("topic",{
            url:'/topic',
            templateUrl:"app/topic/topic.html",
            params:{
                'operate':'save'
            }
        })
        //话题文章列表
        .state("topicarticlement",{
            url:'/topicarticlement',
            templateUrl:"app/topic/topicarticlement.html",
            params:{
                'operate':'find'
            }
        })
        //话题文章添加
        .state("topicarticle",{
            url:'/topicarticle',
            templateUrl:"app/topic/topicarticle.html",
            params:{
                'operate':'save'
            }
        })
        //话题文章单个评论列表
        .state("topicarticlecommentonement",{
            url:'/topicarticlecommentonement',
            templateUrl:"app/topic/topicarticlecommentonement.html",
            params:{
                'operate':'find'
            }
        })
        //话题文章回复评论列表
        .state("topicarticlecommentreplyment",{
            url:"/topicarticlecommentreplyment",
            templateUrl:"app/topic/topicarticlecommentreplyment.html",
            params:{
                operate:'find'
            }
        })
        //话题文章评论列表
        .state("topicarticlecommentment",{
            url:"/topicarticlecommentment",
            templateUrl:"app/topic/topicarticlecommentment.html",
            params:{
                operate:'find'
            }
        })
        //话题文章评论添加
        .state("topicarticlecomment",{
            url:"/topicarticlecomment",
            templateUrl:"app/topic/topicarticlecomment.html",
            params:{
                operate:'save'
            }
        })
        //意见反馈列表
        .state("sysfeedbackment",{
            url:"/sysfeedbackment",
            templateUrl:"app/sysfeedback/sysfeedbackment.html",
            params:{
                operate:'find'
            }
        })

        //社区圈子列表
        .state("communitycirclement",{
            url:'/communitycirclement',
            templateUrl:"app/community/communitycirclement.html",
            params:{
                'operate':'find'
            }
        })
        //社区圈子
        .state("communitycircle",{
            url:'/communitycircle',
            templateUrl:"app/community/communitycircle.html",
            params:{
                'operate':'save'
            }
        })
        //社区圈子文章列表
        .state("communitycirclearticlement",{
            url:'/communitycirclearticlement',
            templateUrl:"app/community/communitycirclearticlement.html",
            params:{
                'operate':'find'
            }
        })
        //社区圈子文章添加
        .state("communitycirclearticle",{
            url:'/communitycirclearticle',
            templateUrl:"app/community/communitycirclearticle.html",
            params:{
                'operate':'save'
            }
        })
        //社区圈子文章单个评论列表
        .state("communitycirclearticlecommentonement",{
            url:'/communitycirclearticlecommentonement',
            templateUrl:"app/community/communitycirclearticlecommentonement.html",
            params:{
                'operate':'find'
            }
        })
        //社区圈子文章回复评论列表
        .state("communitycirclearticlecommentreplyment",{
            url:"/communitycirclearticlecommentreplyment",
            templateUrl:"app/community/communitycirclearticlecommentreplyment.html",
            params:{
                operate:'find'
            }
        })
        //社区圈子文章评论添加
        .state("communitycirclearticlecomment",{
            url:"/communitycirclearticlecomment",
            templateUrl:"app/community/communitycirclearticlecomment.html",
            params:{
                operate:'save'
            }
        })


    });
});
